<tagLib name="html" />
<include file="Public:header" />
	<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;产品属性字段列表&nbsp;&raquo;&nbsp;<a href="{YICMS::U('Field/add')}" target="main"><b style="color:red;">添加字段</b></a></div>
	</div>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="20%" class="center">所属列表名称</td>
			<td  width="20%" class="center">自定义字段名</td>
			<td  width="20%" class="center">自定义属性名称</td>
			<td  width="15%" class="center">编辑</td>
			<td  width="15%" class="center">删除</td>
			<td  width="10%" class="center">是否显示</td>
		</tr>
	</table>
	<ul id="list">
		<if condition="$list neq NULL">
			<volist name="list" id="vo">
				<li style="list-style:none;">
					<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
						<tr align="center" class="smalltxt">
							<td width="20%" class="altbg1 center">{YICMS:$vo.name}</td>
							<td width="20%" class="altbg2 center">{YICMS:$vo.field}</td>
							<td width="20%" class="altbg1 center">{YICMS:$vo.value}</td>
							<td width="15%" class="altbg2 center"><a href="{YICMS::U('Field/edit?id='.$vo['id'])}" style="background:url(../Public/Images/admin/edit.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="15%" class="altbg1 center"><a href="{YICMS::U('Field/del?id='.$vo['id'])}" onclick="return confirm('提示：您确定要删除该新闻吗？不可恢复！建议不显示而不删除!')" style="background:url(../Public/Images/admin/remove.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="10%" class="altbg2 center">
								<if condition="$vo.state eq 1">
									<a href="{YICMS::U('Field/stop?id='.$vo['id'].'&state=0')}" onclick="return confirm('提示：您确定要显示该字段吗?')" style="color:red">点击显示</a>
								<else />
									<a href="{YICMS::U('Field/stop?id='.$vo['id'].'&state=1')}" onclick="return confirm('提示：您确定要不显示该字段吗?')" style="color:red">点击不显示</a>
								</if>
							</td>
						</tr>
					</table>
				</li>
			</volist>
		<else />
			<li>
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td class="altbg1" style="text-align:center;font-weight:bold;color:#E01558;padding:10px 0px;">暂时没有字段!可以点击'添加字段'进入添加!^_^</td>
					</tr>
				</table>
			</li>
		</if>	
	</ul>
<br/>
<include file="Public:footer" />